package cn.eyesea.cc.frame.enums;

/**
 * 逻辑类型
 *
 * @author wanghuilong
 * @version 1.0
 * @date 2021/6/11 4:20 下午
 */
public enum LogicalTypeEnum {

    DAO(LogicalResultTypeEnum.MYBATIS_MAPPER, "DAO的sql查询接口"),
    MAPPER(LogicalResultTypeEnum.MYBATIS_MAPPER_XML, "DAO的mybatis的XML文件"),
    ENTITY(LogicalResultTypeEnum.DO, "数据库表数据对象"),

    //延伸逻辑类型
    VARIABLE(LogicalResultTypeEnum.VARIABLE, "变量"),
    ;


    /**
     * 逻辑结果类型
     */
    private LogicalResultTypeEnum logicalResultType;


    private String desc;

    LogicalTypeEnum(LogicalResultTypeEnum logicalResultType, String desc) {
        this.logicalResultType = logicalResultType;
        this.desc = desc;
    }

    public LogicalResultTypeEnum getLogicalResultType() {
        return logicalResultType;
    }

    public String getDesc() {
        return desc;
    }
}
